package dblayer;

import java.util.ArrayList;

import modellayer.Item;

public interface IFDBItem {

	public ArrayList<Item> getAllItems();
	
	public Item searchByID(int ID);
	public Item searchByName(String name);
	public Item searchByDescription(String description);
	public Item searchByPrice(double price);
	public Item searchByAmount(int amount);
	public Item searchByStatus(String status);
	public Item searchByMax(int max);
	public Item searchByMin(int min);
	public Item searchByType(int type);
	public Item searchBySupplier(int supplier);
	
	public int insertItem(Item item) throws Exception;
	
	public int updateItem(Item item);
	
	public int deleteItem(int id);
}
